package com.heima.wemedia.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.statistics.dto.NewsDimensionDto;
import com.heima.model.wemedia.pojos.NewPage;
import com.heima.wemedia.service.WmStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Date;


/**
 * @author 许敦军
 * @version 1.0
 * @project heima-leadnews
 * @date 2024/1/26 22:34:47
 */
@RestController
@RequestMapping("/api/v1/statistics")
public class WmStatisticsController {
    @Autowired
    private WmStatisticsService wmStatisticsService;
    @GetMapping("/newsDimension")
    public ResponseResult newsDimension(NewsDimensionDto newsDimensionDto) {
        return wmStatisticsService.newsDimension(newsDimensionDto);
    }

    @GetMapping("/newsPage")
    public ResponseResult newPage(NewPage newPage){
        return wmStatisticsService.newPage(newPage);
    }



}
